x86: clean up physid_mask_t handling
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Oct 2011 10:26:20 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Oct 2011 10:26:20 +0000 (12:26 +0200)
commit2c4aff7e10734e214fc651a840cd9cc9aa2617ae
tree243b6046637a99a65df5217f17a5a81861efd1ac
parent9cff0937b26fde65ae0077e1d4589a8b0926c816
x86: clean up physid_mask_t handling

This eliminates passing and returning by value of this type (making it
unnecessary for the compiler to create temporary variables for doing so
on the stack), thus dramatically reducing the stack frame sizes of a
couple of functions (was in one case over 12k for a 4095-CPU build).

In one case a local variable gets converted to a static one, possible
because the function gets called at most once (during early boot).

Some accessors get eliminated altogether as being unused or as being
equally well open coded at the place of use.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/apic.c
xen/arch/x86/io_apic.c
xen/arch/x86/mpparse.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/mach-generic/mach_apic.h
xen/include/asm-x86/mpspec.h